# ifndef DEF_MODULE
# define DEF_MODULE

# include "Source.h"

/*
*	This class is the base of the classes running the game
*/

class Module
{
	public:

	Module( Game*);
	virtual ~Module();

	void receiveEvent( const Event evt);

	protected:

	std::queue<Event> myEvents;
	Game* myGame;
	State myState;

	private:

	virtual void handleEvents() = 0;
};

# endif